package com.wzapp.sitposture.authentication.pojo.entity;

import com.wzapp.sitposture.authentication.pojo.converter.BucketCoverterJson;
import com.wzapp.sitposture.authentication.pojo.view.Bucket;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by qianglong on 2018/1/15.
 */
@Data
@Entity(name = "config_oss")
public class Oss implements Serializable {
    private static final long serialVersionUID = 4190563560420562976L;

    @Id
    @GeneratedValue(generator = "uuid_32")
    @GenericGenerator(name = "uuid_32", strategy = "uuid")
    @Column(length = 32)
    private String id;

    @Convert(converter = BucketCoverterJson.class)
    private Bucket image;

    @Convert(converter = BucketCoverterJson.class)
    private Bucket video;

}
